<?php
namespace app\api\controller;
use think\Controller;
use think\api\Client;

Class Sms extends controller
{

	public function send(){

        $client = new Client("7d2831fedf9765f28cd26ea6c30ecce4");
        $code=rand(111111,999999);

        $phone=13480318930;

        $result = $client->smsSend()
        ->withSignId('116')
        ->withTemplateId('4')
        ->withPhone($phone)
        ->withParams('{"code":'.$code.'}')
        ->request();
        dump($result);

    }


}